const mongoose=require('mongoose')
mongoose.connect('mongodb://127.0.0.1/10-22')
.then(()=>{
    console.log('连接成功');
    
})
.catch(()=>{
    console.log('连接失败');  
})
const list1=mongoose.Schema({
    name:String,
    color:String,
    nr:String
})
const list=mongoose.model('list',list1,'list')

const sj1=mongoose.Schema({
    name:String,
    shuju:Array
})
const sj=mongoose.model('sj',sj1,'sj')

module.exports={
    list,sj
}